package com.ff.xyh.feign.client.dictionary;

import com.ff.xyh.common.entity.dictionary.ComplaintStatus;
import com.ff.xyh.common.entity.dictionary.ComplaintType;
import com.ff.xyh.common.entity.result.ResultMessage;
import com.ff.xyh.common.entity.result.ResultObject;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther FF
 * @Date 2023年 05月 25日
 * @Time 01:47
 */

@FeignClient(value = "consumer-dictionary", contextId = "ComplaintStatusClient")
@RequestMapping("/dictionary")
public interface ComplaintStatusClient {

    @ApiOperation(value = "获取所有举报状态信息")
    @GetMapping("get-complaint-status-all")
    ResultObject getAllComplaintStatus() ;

    @ApiOperation(value = "根据id获取举报状态信息")
    @GetMapping("get-complaint-status-id")
    ResultObject getComplaintStatusById(
            @RequestParam(name = "id") Integer id) ;

    @ApiOperation(value = "根据id删除举报状态信息")
    @GetMapping("delete-complaint-status-id")
    ResultObject deleteComplaintStatusById(
            @RequestParam(name = "id") Integer id) ;

    @ApiOperation(value = "添加举报状态信息")
    @PostMapping("insert-complaint-status")
    ResultObject insertComplaintStatus (
            @RequestBody ComplaintStatus complaintStatus) ;

    @ApiOperation(value = "修改举报状态信息")
    @PostMapping("update-complaint-status")
    ResultObject updateComplaintStatus(
            @RequestBody ComplaintStatus complaintStatus) ;

}
